<?php

namespace Acme\FirmUsersBundle\Form;

use Symfony\Component\Form\FormBuilder;

class AdminEditUserForm extends AdminUserForm {
    
    public function buildForm(FormBuilder $builder, array $options) {
      parent::buildForm($builder, $options);
      $builder->remove('password');
      $builder->add('old_password', 'password', array('required'=>false));
      $builder->add('new_password', 'password', array('required'=>false));
    }
    
    public function getName() {
        return 'admin_edit';
    }
}

